﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="add_category.aspx.vb" Inherits="add_category" title="CrIcKet-Add category" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">


        .style1
        {
            font-size: large;
            color: #0066FF;
        }
        .style2
        {
            font-size: medium;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <center>
    <p>
        <span class="style1">
        <asp:Label ID="Label1" runat="server" Text="Welcome "></asp:Label>
        <asp:Label ID="Label2" runat="server" Text="Username"></asp:Label>
        &nbsp;</span></p>
        <p class="style1">
            Categories Information :</p>
        <p>
              <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" >
            <headertemplate >
            <table cellpadding=3>
                <tr>
                         <td><b>CATEGORY</b></td>
                </tr>
                </table>
            </headertemplate>
              <itemtemplate>     
            <table cellpadding=4>
                       
                <tr>
                   <td><a href= "Category page.aspx?id=<%# Eval("categoryid")%>"> 
                   <%#Eval("name")%> 
                </a> </td>
                
                </tr>
                </table>
                
            </itemtemplate>
           
        </asp:Repeater>
      <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT [categoryid], [name] FROM [category]">
        </asp:SqlDataSource>
        </p>
        <span class="style2">Add New Category&nbsp; :<br />
        <br />
        New Category :
        <asp:TextBox ID="TextBox1" runat="server" style="text-align: justify" 
            TabIndex="1"></asp:TextBox>
        <br />
        <asp:Label ID="Label3" runat="server"></asp:Label>
        <br />
        <asp:Button ID="Button1" runat="server" Text="Add category" TabIndex="2" />
        </span>
    </center>
    
                 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>